package com.lightman.gulimall.product.feign;

import com.lightman.gulimall.product.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "gulimall-ware")
public interface WareFeignService {

    /**
     * @param skuIds
     * @return
     */
    @RequestMapping(value = "/ware/waresku/hasstock", method = RequestMethod.POST)
    List<SkuHasStockVo> getSkusHasStocks(@RequestBody List<Long> skuIds);
}
